package com.mes.service.hpf;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mes.dao.hpf.SaleReceivableMapper;
import com.mes.entity.hpf.SaleReceivable;
import com.mes.entity.yzl.Condition;
import com.mes.entity.yzl.Receivable;

@Service
@Transactional
public class SaleReceivableServiceImpl implements SaleReceivableService {

	@Resource
	public SaleReceivableMapper saleReceivableMapper;
	
	@Override
	public int receivableCount(Condition condition) {
		// TODO Auto-generated method stub
		return saleReceivableMapper.receivableCount(condition);
	}

	@Override
	public List<SaleReceivable> receivablePageList(Condition condition) {
		// TODO Auto-generated method stub
		return saleReceivableMapper.receivablePageList(condition);
	}

	@Override
	public Receivable findByDateMonth(Receivable receivable) {
		// TODO Auto-generated method stub
		return saleReceivableMapper.findByDateMonth(receivable);
	}

	@Override
	public int addReceivable(Receivable receivable) {
		// TODO Auto-generated method stub
		return saleReceivableMapper.addReceivable(receivable);
	}

	@Override
	public int receivableAllCount(Condition condition) {
		// TODO Auto-generated method stub
		return saleReceivableMapper.receivableAllCount(condition);
	}

	@Override
	public List<Receivable> receivableAllPageList(Condition condition) {
		// TODO Auto-generated method stub
		return saleReceivableMapper.receivableAllPageList(condition);
	}

	@Override
	public int resetReceivable(Receivable receivable) {
		// TODO Auto-generated method stub
		return saleReceivableMapper.resetReceivable(receivable);
	}

}
